#!/usr/bin/env python
from robotparts import *
from vis import *
import numpy
import time

from gui.gui import gui


#main loop
def main():

	

	links=[]



	app = gui(links)
	app.start()		

	visualizer = VisThread(links,(1024,768))
	visualizer.start()

	eng=engine(links)
	eng.start()

	while visualizer.running:
		time.sleep(0.01)
		t=time.time()

		eng.UpdateEvent.set()

	eng.running=False

if __name__ == '__main__': main()

